import requests


class Http:
    def __init__(self, _url=None):
        self.url = _url

    def get(self, _url=None, _params=None, _headers=None):
        url = self.url if _url is None else _url
        if url is None:
            print("url is empty!")
            exit(0)
        res = requests.get(url, params=_params, headers=_headers)
        res.encoding = "utf8"
        return res
